import { useTranslation } from 'react-i18next';
import { useAppSelector } from 'app/store/storeHooks';

import ParametersModal from '../ParametersModal';
import ArtisticStyleAvatarGroup from './ArtisticStyleAvatarGroup';
import ArtisticStylePickerContent from './ArtisticStylePickerContent';
export default function ArtisticStyle() {
  const { t } = useTranslation();
  const { userPaintingMenuConfig } = useAppSelector((store) => store.preset);
  if (userPaintingMenuConfig.indexOf('parameters.artisticStyle') < 0) {
    return null;
  }
  return (
    <ParametersModal
      title={t('parameters.artisticStyle')}
      triggerRight={<ArtisticStyleAvatarGroup />}
    >
      <ArtisticStylePickerContent />
    </ParametersModal>
  );
}
